<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-07-12 16:38
 *
 * Version: 2.0
 */

namespace App\Modules\Employee\Validators;


use Flower\Core\Repository\Contracts\ValidatorInterface;
use Flower\Core\Repository\Validator\LaravelValidator;

class UserStoreValidator extends LaravelValidator
{
	protected $rules = [
		ValidatorInterface::RULE_CREATE => [
			'uid'   => 'required|numeric',
			'sid'   => 'required|numeric',
			'rid'   => 'required|numeric',
		]
	];

	protected $messages = [
		'uid.required' => '理发师id不能为空',
		'uid.numeric'  => '理发师id必须为数字',
		'sid.numeric'  => '店铺id必须为数字',
		'sid.required' => '店铺id不能为空',
		'rid.numeric'  => '角色id必须为数字',
		'rid.required'  => '角色id不能为空',
	];

}